import request from '@/utils/request'
import requestFile from '@/utils/requestFile'///C:/Users/crab/Desktop/requestFile.js

// 查询团队学生列表
export function listTeamStudent(query) {
  return request({
    url: '/eqxm/teamStudent/list',
    method: 'get',
    params: query
  })
}

// 查询团队学生详细
export function getTeamStudent(id) {
  return request({
    url: '/eqxm/teamStudent/' + id,
    method: 'get'
  })
}

// 新增团队学生
export function addTeamStudent(data) {
  return request({
    url: '/eqxm/teamStudent',
    method: 'post',
    data: data
  })
}

// 修改团队学生
export function updateTeamStudent(data) {
  return request({
    url: '/eqxm/teamStudent',
    method: 'put',
    data: data
  })
}

// 修改团队学生
export function examine(data) {
  return request({
    url: '/eqxm/teamStudent/examine',
    method: 'put',
    data: data
  })
}


// 删除团队学生
export function delTeamStudent(id) {
  return request({
    url: '/eqxm/teamStudent/' + id,
    method: 'delete'
  })
}

// 导出团队学生
export function exportTeamStudent(query) {
  return request({
    url: '/eqxm/teamStudent/export',
    method: 'get',
    params: query
  })
}

// 修改团队学生
export function applyAdvanced(data) {
  return request({
    url: '/eqxm/teamStudent/applyAdvanced',
    method: 'put',
    data: data
  })
}

// 修改团队学生
export function applyCredit(data) {
  return request({
    url: '/eqxm/teamStudent/applyCredit',
    method: 'put',
    data: data
  })
}
// 查询团队学生列表
export function listAdvanced(query) {
  // url: '/eqxm/teamStudent/listAdvanced',
  return request({
    url: '/eqxm/team/listAdvancedIndividual',
    method: 'get',
    params: query
  })
}

// 查询团队学生列表
export function listCredit(query) {
  return request({
    url: '/eqxm/teamStudent/listCredit',
    method: 'get',
    params: query
  })
}

export function examineCredit(data) {
  return request({
    url: '/eqxm/teamStudent/examineCredit',
    method: 'put',
    data: data
  })
}

export function examineCredits(data) {
  return request({
    url: '/eqxm/teamStudent/examineCredits',
    method: 'put',
    data: data
  })
}

// 下载用户导入模板
export function importTemplate() {
  return requestFile({
    url: '/eqxm/teamStudent/downloadModel',
    method: 'get'
  })
}
export function getUserTeam() {
  return request({
    url: '/eqxm/teamStudent/getUserTeam',
    method: 'get'
  })
}
export function recommendAdvanced(data) {
  return request({
    url: '/eqxm/teamStudent/recommendAdvanced/'+data,
    method: 'get'
  })
}


// 查询团队学生列表
export function listCollegeAccreditation(query) {
  return request({
    url: '/eqxm/teamStudent/listCollegeAccreditation',
    method: 'get',
    params: query
  })
}

export function downloadTemplate(id) {
  return requestFile({
    url: '/eqxm/teamStudent/handleDownload/'+id,
    method: 'get'
  })
}

export function psSubmitForm(data) {
  return request({
    url: '/eqxm/teamStudent/psSubmitForm',
    method: 'put',
    data: data
  })
}
export function downloadTemplateTeam(id) {
  return requestFile({
    url: '/eqxm/team/handleDownloadTeam/'+id,
    method: 'get'
  })
}

